home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / System / BoingBag1 / Contributions / InstallerNG / GUI-API / example / installergui_data.h < prev    next >
C/C++ Source or Header  |  1999-08-28  |  2KB  |  67 lines

  1. #ifndef INSTALLERNG_GUILIB_DATA_H
  2. #define INSTALLERNG_GUILIB_DATA_H
  3.  
  4. #ifndef MAKE_ID
  5. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  6. #endif
  7.  
  8. /********************************************************************/
  9.  
  10. extern struct Library *MUIMasterBase;
  11.  
  12. /********************************************************************/
  13.  
  14. #define DEBUG_MAKRO KPrintF("installergui.library: "__FUNC__"\n", 0);
  15.  
  16. /********************************************************************/
  17.  
  18. // protos for libraries support functions
  19. APTR  guistuff_InitRadio(BOOL selected, BOOL disabled);  // create a radio button
  20. BOOL  guistuff_NewContent(APTR application, APTR newobject);  // put the new content into the gui
  21. APTR  guistuff_InitSimpleText(char *text);  // create a simple floattext object with the given text
  22. void  guistuff_MXTwoFun(register __a1 APTR *data);  // handles two buttons as mutual exclusive
  23. void  guistuff_MXThreeFun(register __a1 APTR *data);  // handles three buttons as mutual exclusive
  24. void  guistuff_SetValFun(register __a1 APTR *data);  // poke the value data[1] to address stored in data[0]
  25. void  guistuff_Refresh(APTR application);  // refresh the gui
  26. char *guistuff_AskFile_AskDir(APTR application, struct FunctionEnvironment *localenv, BOOL askdir);  //
  27. char *guistuff_CenterText(char *text); // center text for a floattext object (replace every LF with '\33c'
  28. BOOL  guistuff_HandleGUIEvent(APTR application, long event); // ..
  29.  
  30. /********************************************************************/
  31.  
  32. struct Application
  33. {
  34.   APTR      app_Application;
  35.   APTR      app_MainWindow;
  36.   APTR      app_MainRoot;
  37.   APTR      app_CurrentObject;
  38.   APTR      app_HelpText;
  39.   APTR      app_MkdirWindow;
  40.   APTR      app_MkdirName;
  41.   APTR      app_MkdirRelatedDirlist;
  42.   APTR      app_ButtonProceed;
  43.   APTR      app_ButtonCancel;
  44.   APTR      app_GaugeWindow;
  45.   APTR      app_GaugeSrc;
  46.   APTR      app_GaugeDest;
  47.   APTR      app_GaugeGauge;
  48.   APTR      app_ParseGauge;
  49.  
  50.   BOOL      app_SWING_Mode;
  51.   BOOL      app_TRAP_Mode;
  52.  
  53.   char    **app_Texts;
  54.   char     *app_Title;
  55.   ULONG    *app_GlobalEnv;
  56.  
  57.   long      app_Error;
  58.   long      app_Quit;
  59.   long      app_CurrentGUIEvent;
  60.  
  61.   APTR      app_DirlistList;
  62.   long      app_DirlistWalker;
  63. };
  64.  
  65. #endif
  66.  
  67.